package com.luojing.springcloud.config.orderdelay;

import com.luojing.springcloud.service.OrderService;

/**
 * @author luojing
 * @create 2018/10/29 9:22 AM
 **/
public class OrderDelayTask implements Runnable {

  private OrderService orderService;

  public OrderDelayTask(OrderService orderService) {
    this.orderService = orderService;
  }

  @Override
  public void run() {
    while (true) {
      try {
        orderService.orderStatusDelay();
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
